@echo off
chcp 65001 > nul
title 查找端口占用进程

echo ====================================
echo     查找端口占用进程详情
echo ====================================
echo.

echo [检查] 端口4000占用情况:
netstat -ano | findstr :4000
echo.

echo [检查] 端口5001占用情况:
netstat -ano | findstr :5001
echo.

echo [检查] 端口8102占用情况:
netstat -ano | findstr :8102
echo.

echo [进程] 所有Node.js进程:
tasklist | findstr node.exe
echo.

echo [进程] 所有Python进程:
tasklist | findstr python.exe
echo.

echo [建议] 手动终止命令示例:
echo 终止指定PID: taskkill /f /pid [进程ID]
echo 终止所有Node.js: taskkill /f /im node.exe
echo 终止所有Python: taskkill /f /im python.exe
echo.
pause
